﻿
using BasicData.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace BasicData.Infrasturctrue
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">数据库上下文选项</param>
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> Users { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }

        /// <summary>
        /// 用户角色关系表
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }

        /// <summary>
        /// 权限表
        /// </summary>
        public DbSet<Permission> Permissions { get; set; }

        /// <summary>
        /// 角色权限关系表
        /// </summary>
        public DbSet<RolePermission> RolePermissions { get; set; }

        /// <summary>
        /// 供应商表
        /// </summary>
        public DbSet<Supplier> Suppliers { get; set; }

        /// <summary>
        /// 商品表
        /// </summary>
        public DbSet<Goods> Goods { get; set; }

        /// <summary>
        /// 图片信息表
        /// </summary>
        public DbSet<ImageInfo> ImageInfos { get; set; }

        /// <summary>
        /// 养殖公司表
        /// </summary>
        public DbSet<BreedingCompany> BreedingCompanies { get; set; }

        /// <summary>
        /// 养殖信息表
        /// </summary>
        public DbSet<BreedingInfo> BreedingInfos { get; set; }

        /// <summary>
        /// 养殖健康信息表
        /// </summary>
        public DbSet<BreedingHealthInfo> BreedingHealthInfos { get; set; }

        /// <summary>
        /// 屠宰公司表
        /// </summary>
        public DbSet<SlaughterCompany> SlaughterCompanies { get; set; }
        /// <summary>
        /// 屠宰信息实体
        /// </summary>
        public DbSet<SlaughterInfo> SlaughterInfos { get; set; }
        /// <summary>
        /// 深加工企业实体
        /// </summary>
        public DbSet<ProcessingCompany> ProcessingCompanies { get; set; }
        /// <summary>
        /// 深加工实体
        /// </summary>
        public DbSet<Processing> Processings { get; set; }
        /// <summary>
        /// 生产信息实体
        /// </summary>
        public DbSet<ProductionInfo> ProductionInfos { get; set; }

     

         
    
    }
}